package com.medical.app.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.app.entity.HospitalBuilding;

import java.util.List;

public interface HospitalBuildingMapper extends BaseMapper<HospitalBuilding> {
    default List<HospitalBuilding> selectByHospitalId(Long hospitalId){
        LambdaQueryWrapper<HospitalBuilding> queryWrapper =  new LambdaQueryWrapper<HospitalBuilding>().eq(HospitalBuilding::getHospitalId,hospitalId);
        return this.selectList(queryWrapper);
    }
}